package com.sit.pojo;

import org.springframework.stereotype.Component;

import java.sql.Date;

@Component
public class books {
    private String bookId;
    private String bookName;
    private String author;
    private Date publication;
    private String publisher;
    private String typeId;
    private float price;
    private int bookSum;
    private int bookRead;

    public books() {
    }
    public books(String bookId, String bookName, String author, Date publication, String publisher, String typeId, float price, int bookSum, int bookRead) {
        this.bookId = bookId;
        this.bookName = bookName;
        this.author = author;
        this.publication = publication;
        this.publisher = publisher;
        this.typeId = typeId;
        this.price = price;
        this.bookSum = bookSum;
        this.bookRead = bookRead;
    }
    public String getBookId() {
        return bookId;
    }
    public void setBookId(String bookId) {
        this.bookId = bookId;
    }
    public String getBookName() {
        return bookName;
    }
    public void setBookName(String bookName) {
        this.bookName = bookName;
    }
    public String getAuthor() {
        return author;
    }
    public void setAuthor(String author) {
        this.author = author;
    }
    public Date getPublication() {
        return publication;
    }
    public void setPublication(Date publication) {
        this.publication = publication;
    }
    public String getPublisher() {
        return publisher;
    }
    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }
    public String getTypeId() {
        return typeId;
    }
    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }
    public float getPrice() {
        return price;
    }
    public void setPrice(float price) {
        this.price = price;
    }
    public int getBookSum() {
        return bookSum;
    }
    public void setBookSum(int bookSum) {
        this.bookSum = bookSum;
    }
    public int getBookRead() {
        return bookRead;
    }
    public void setBookRead(int bookRead) {
        this.bookRead = bookRead;
    }

    @Override
    public String toString() {
        return "books [author=" + author + ", bookId=" + bookId + ", bookName=" + bookName + ", bookRead=" + bookRead
                + ", bookSum=" + bookSum + ", price=" + price + ", publication=" + publication + ", publisher="
                + publisher + ", typeId=" + typeId + "]";
    }
}
